<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<!--#include virtual="users.inc.asp"-->
<!--#include virtual="search.inc.asp"-->
</head>

<body>
<%
if not chkadmin() then
	response.Write("你没有权限修改资料！</body></html>")
	response.End()
end if
set conn=server.createobject("adodb.connection")
conn.open "provider=microsoft.jet.oledb.4.0;data source="&server.mappath("App_Data\MainDB.mdb")
set rs=server.createobject("adodb.recordset")
rs.open "SELECT * FROM [Pics] WHERE PicID=" & request.QueryString("id") & "",conn,3,3
if rs.eof then
	response.Write("图片不存在。")
else
	rs("isDel")=true
	response.Write("删除成功。")
end if
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
